import cupk.*;
import cupk.*;

public class Main {
    public static void main(String[] args) {
        Department department = new HRDepartment();
        FullTimeEmployee fullTimeEmployee = new FullTimeEmployee("Amy", 1000, 50);
        PartTimeEmployee partTimeEmployee = new PartTimeEmployee("Tom", 100, 40);
        System.out.println("============人力资源部门数据===========");
        fullTimeEmployee.accept(department);
        partTimeEmployee.accept(department);
        department = new FADepartment();
        System.out.println("============财务部门数据===========");
        fullTimeEmployee.accept(department);
        partTimeEmployee.accept(department);
    }
}